package com.yuju.controller.sam;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;
import com.yuju.common.Result;
import com.yuju.controller.base.BaseController;
import com.yuju.enums.ReturnCodeEnum;
import com.yuju.enums.ReturnStatusEnum;
/**
 * 
 * 类名：VerificationCodeController  <br />
 *
 * 功能：校验用户登录
 *
 * @author : xuehj <br />
 * @Date : 2018年1月17日 下午4:29:53  <br />
 * @version : 1.1 <br />
 */
@Controller
@RequestMapping("check")
public class CheckLoginController extends BaseController {
	
	@RequestMapping("login")
	@ResponseBody
	public Result checkLogin(@RequestBody JSONObject obj) throws Exception {
		Result result = new Result();
		result.setStatus(ReturnStatusEnum.SUCCESS.getCode());
		result.setMsg(ReturnStatusEnum.SUCCESS.getDesc());
		result.setReturnCode(ReturnCodeEnum.LOGIN_SUCCESS.getCode());
		result.setReturnMsg(ReturnCodeEnum.LOGIN_SUCCESS.getDesc());
		
		return result;
	}
	
	
}